package test;

/**
 * @author chenhong
 * @version 1.0.0
 * @ClassName testSynchronized.java
 * @Description TODO
 * @createTime 2020年11月17日 20:38:00
 */
public class testSynchronized {
    public static void main(String[] args) {
        int n = 4;

        for (int s = 1; s < (1 << n); s++) {
            for (int k = 0; k < n; k++) {
                if ((s & (1 << k)) == 0) { // words[k] 不在子集 s 中
                    continue;
                }
                System.out.println(k);

            }
        }
    }
}

class a {
    public final int x = 5;

    public a() {
    }
}

class b extends a {
    public b() {
        super();
        System.out.println(x);
    }
}
